<template>
  <div class="cart">
      <div v-for="item in goods" :key="item.item_id" class="cart-list">
        <img :src="item.imgsrc" />
        {{ item.item_name }}
        {{ item.price / 100 }}
        {{ item.num }}
      </div>
  </div>
</template>

<script>
import { mapState } from "vuex";

export default {
  name: "Cart",
  computed: {
    ...mapState(["goods"]),
  }
};
</script>

<style scoped>
.cart-list{
  width: 100%;
  height: 2.133333rem;
}
.cart-list img{
  width: 1.333333rem;
}

</style>